package cn.bdqn.utils;

import java.util.Scanner;

public class StringDemo03 {
	public static void submitWork(String fileName,String email) {
		int dotlndex=fileName.indexOf(".");
		String extension=fileName.substring(dotlndex);
		if(".java".equalsIgnoreCase(extension)) {
			int atlndex=email.indexOf("@");
			dotlndex=email.indexOf(".");
			
			if(atlndex==-1&&dotlndex==-1)&&(atlndex>dotlndex))
{
	System.out.println("电子邮箱格式错误！\n作业提交失败！");
	}
else {
	System.out.println("");
}
}
		else {
			System.out.println("作业提交失败，不合法的java源文件");
		}
	}

	public static void main(String[] args) {
		Scanner input= new Scanner(System.in);
	

	}

}
